#ifndef PHOTOSHOW_H
#define PHOTOSHOW_H

#include <QDialog>
#include <QMouseEvent>

namespace Ui {
class PhotoShow;
}

class PhotoShow : public QDialog
{
    Q_OBJECT

public:
    explicit PhotoShow(QWidget *parent = nullptr);
    void ShowImg(QIcon);
    ~PhotoShow();

protected:
    void mousePressEvent(QMouseEvent *e);
    void mouseMoveEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);

private:
    QPoint last;
    Ui::PhotoShow *ui;
};

#endif // PHOTOSHOW_H
